package com.goldenautumn.prefabricate.business.order

import com.goldenautumn.prefabricate.business.entity.CarPreviewInfo
import com.goldenautumn.prefabricate.business.entity.ExpressInfo
import com.goldenautumn.prefabricate.business.entity.ExpressResp
import com.goldenautumn.prefabricate.business.entity.OrderDetailsInfoVo
import com.goldenautumn.prefabricate.business.entity.OrderInfoVo
import com.goldenautumn.prefabricate.business.entity.RefundOrderInfoVo


sealed class OrderListUiState {

    data class OrderList(val orderList:List<OrderInfoVo>) : OrderListUiState()

    data class RefundList(val orderList:List<RefundOrderInfoVo>) : OrderListUiState()

}

sealed class OrderPayUiState {

    data class CarPreview(val preview:CarPreviewInfo) : OrderPayUiState()

    data class PlayResult(val isSuccess:Boolean,val msg:String) : OrderPayUiState()

}

sealed class OrderStatusUiState {

    data class ActionMsg(val position:Int,var msg:String? = null) : OrderStatusUiState()

    data class OrderDetails(val order: OrderDetailsInfoVo) : OrderStatusUiState()

    data class ExpressInfo(val express: com.goldenautumn.prefabricate.business.entity.ExpressInfo) : OrderStatusUiState()

    data class RefundDetails(val refund: RefundOrderInfoVo) : OrderStatusUiState()


}